package com.example.demo.metro.dtovo;

import com.example.demo.group.ValidGroup;
import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;

/**
 * @author : yuanchuan
 * @date : 2023-11-22 21:24
 * @team : 西南综合开发支持部
 * @copyright :
 **/
@Data
public class FeedBackDTO {

    @NotNull(message = "数据ID不能为空", groups = ValidGroup.update.class)
    private Long id;

    @NotEmpty(message = "反馈内容不能为空", groups = {ValidGroup.add.class, ValidGroup.update.class})
    private String content;

    @NotEmpty(message = "反馈标题不能为空", groups = {ValidGroup.add.class, ValidGroup.update.class})
    private String title;
}
